package com.shtel.paas.monitorcenter.config.management.alarm.config.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.shtel.paas.monitorcenter.config.management.alarm.config.entity.AlarmRuleHostDeleteDto;
import com.shtel.paas.monitorcenter.config.management.alarm.config.entity.AlarmRulesHostEntity;
import com.shtel.paas.monitorcenter.config.management.alarm.config.entity.AlarmRulesHostidDto;

/**
 * @Title: WarningPersonalizedConfigDao.java
 * @Package com.shtel.paas.monitorcenter.config.management.alarm.config.mapper
 * @Description: 告警个性化配置
 * @author zhangyy
 * @date 2018年5月31日
 */
public interface WarningPersonalizedConfigDao {
	List<AlarmRulesHostEntity> selectAll(
			@Param(value = "monitoringIndex") String monitoringIndex);

	List<AlarmRulesHostEntity> selectMonitorIndex(
			@Param(value = "monitoringIndex") String monitoringIndex);

	int updateConfig(AlarmRulesHostidDto alarmRulesEntity);

	int insertConfig(AlarmRulesHostidDto param);

	int deleteConfig(@Param(value = "desc") String desc);

	// 验证是否已经存在
	List<AlarmRulesHostEntity> findConfig(AlarmRulesHostidDto pam);

	// 删除勾选掉的ip
	int deleteSelectIps(AlarmRuleHostDeleteDto adelete);

}
